package cn.ym.product.mapper;

import cn.ym.product.domain.Product;
import cn.ym.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ym
 * @since 2022-11-16
 */
public interface ProductMapper extends BaseMapper<Product> {
    //下架
    void updateOffState(@Param("ids")Long[] ids, @Param("date")Date date);
    //上架
    void updateOnSaleState(@Param("id")Long id,  @Param("date")Date date);


}
